/*
 * @Author: your name
 * @Date: 2022-04-13 20:48:37
 * @LastEditTime: 2022-04-14 20:08:51
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \drivingTow\src\usege\dto\create-usege.dto.ts
 */
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";

export class CreateUsegeDto {
  @IsNotEmpty()
  @ApiProperty({ description: '车牌号' })
  readonly licensePlate: string;

  @IsNotEmpty()
  @ApiProperty({ description: '使用教练员ID' })
  readonly coach: string;

  @IsNotEmpty()
  @ApiProperty({ description: '使用教练员名字' })
  readonly coachName: string;


  @IsNotEmpty()
  @ApiProperty({ description: '使用时间' })
  readonly create_time: string;

  @IsNotEmpty()
  @ApiProperty({description:'归还时间'})
  readonly return_time:string;

  @IsNotEmpty()
  @ApiProperty({ description: '使用需求' })
  readonly need: string;

  @IsNotEmpty()
  @ApiProperty({ description: '车况' })
  readonly vehicle_condition: string;

  @IsNotEmpty()
  @ApiProperty({ description: '油量' })
  readonly oil_quantity: number;

}
export class UsegeInfoDto {
  public id: number;
  public licensePlate: string;
  public coach: string;
  public coachName: string;
  public create_time: string;
  public return_time: string;
  public need: string;
  public vehicle_condition: string;
  public oil_quantity: number;
}

export interface UsegeRo {
  list: UsegeInfoDto[];
  Total: number;
}
